// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from '/home/leonard/bsin-paas/all-in-one/bsin-ui-upms/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "redirect": "/application-management",
    "exact": true
  },
  {
    "name": "应用管理",
    "path": "/application-management",
    "component": require('@/pages/ApplicationManagement/index').default,
    "exact": true
  },
  {
    "name": "租户管理",
    "path": "/tenant-management",
    "component": require('@/pages/TenantManagement/index').default,
    "exact": true
  },
  {
    "name": "机构管理",
    "path": "/organizational-management",
    "component": require('@/pages/OrganizationalManagement/index').default,
    "exact": true
  },
  {
    "name": "机构岗位",
    "path": "/organization-post",
    "component": require('@/pages/OrganizationPost/index').default,
    "exact": true
  },
  {
    "name": "用户管理",
    "path": "/user-management",
    "component": require('@/pages/UserManagement/index').default,
    "exact": true
  },
  {
    "name": "岗位管理",
    "path": "/post-management",
    "component": require('@/pages/PostManagement/index').default,
    "exact": true
  },
  {
    "name": "角色管理",
    "path": "/role-management",
    "component": require('@/pages/RoleManagement/index').default,
    "exact": true
  },
  {
    "name": "菜单管理",
    "path": "/menu-management",
    "component": require('@/pages/MenuManagement/index').default,
    "exact": true
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
